package com.stepshop.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HelloServlet extends HttpServlet{
	private static final long serialVersionUID = 1L;
	private int count=0;
	@Override
	public void init() throws ServletException {
		super.init();
		count++;
		System.out.println("helloServlet:init--["+count+"]");
	}
	@Override
	public void destroy() {
		super.destroy();
		count++;
		System.out.println("helloServlet:init--["+count+"]");
	}
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		count++;
		System.out.println("doGet:count["+count+"]");
	}
}

